package untils

import (
	"errors"
	"strings"

	uuid "github.com/satori/go.uuid"
)

// 随机生成有 - uuid
func NewUUID() (string, error) {
	id := uuid.NewV4()
	ids := id.String()
	return ids, errors.New("uuid生成错误！")
}

// 随机没有 - uuid
func NewUUIDSimplicity() (string, error) {
	s, err := NewUUID()
	u := strings.ReplaceAll(s, "-", "")
	return u, err
}
